package com.wave.wavesystem.serve.util;

import cn.dev33.satoken.stp.StpUtil;

public final class AuthUtil {


    public static Long userIdAsLong() {
        boolean login = StpUtil.isLogin();
        if (!login) {
            return null;
        }
        return StpUtil.getLoginIdAsLong();
    }

}
